package com.docker.ywx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.docker.ywx.mapper.DoctorAdditionalCostsMapper;
import com.docker.ywx.domain.DoctorAdditionalCosts;
import com.docker.ywx.service.IDoctorAdditionalCostsService;

/**
 * 附加费用Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-09
 */
@Service
public class DoctorAdditionalCostsServiceImpl implements IDoctorAdditionalCostsService 
{
    @Autowired
    private DoctorAdditionalCostsMapper doctorAdditionalCostsMapper;

    /**
     * 查询附加费用
     * 
     * @param id 附加费用主键
     * @return 附加费用
     */
    @Override
    public DoctorAdditionalCosts selectDoctorAdditionalCostsById(Long id)
    {
        return doctorAdditionalCostsMapper.selectDoctorAdditionalCostsById(id);
    }

    /**
     * 查询附加费用列表
     * 
     * @param doctorAdditionalCosts 附加费用
     * @return 附加费用
     */
    @Override
    public List<DoctorAdditionalCosts> selectDoctorAdditionalCostsList(DoctorAdditionalCosts doctorAdditionalCosts)
    {
        return doctorAdditionalCostsMapper.selectDoctorAdditionalCostsList(doctorAdditionalCosts);
    }

    /**
     * 新增附加费用
     * 
     * @param doctorAdditionalCosts 附加费用
     * @return 结果
     */
    @Override
    public int insertDoctorAdditionalCosts(DoctorAdditionalCosts doctorAdditionalCosts)
    {
        return doctorAdditionalCostsMapper.insertDoctorAdditionalCosts(doctorAdditionalCosts);
    }

    /**
     * 修改附加费用
     * 
     * @param doctorAdditionalCosts 附加费用
     * @return 结果
     */
    @Override
    public int updateDoctorAdditionalCosts(DoctorAdditionalCosts doctorAdditionalCosts)
    {
        return doctorAdditionalCostsMapper.updateDoctorAdditionalCosts(doctorAdditionalCosts);
    }

    /**
     * 批量删除附加费用
     * 
     * @param ids 需要删除的附加费用主键
     * @return 结果
     */
    @Override
    public int deleteDoctorAdditionalCostsByIds(Long[] ids)
    {
        return doctorAdditionalCostsMapper.deleteDoctorAdditionalCostsByIds(ids);
    }

    /**
     * 删除附加费用信息
     * 
     * @param id 附加费用主键
     * @return 结果
     */
    @Override
    public int deleteDoctorAdditionalCostsById(Long id)
    {
        return doctorAdditionalCostsMapper.deleteDoctorAdditionalCostsById(id);
    }
}
